import { defineStore } from 'pinia'
import { ref } from 'vue'

// 用户模块
export const useToken = defineStore(
    'webViewInfo',
    {  
        state: () => ({
            token: '',
        }),
        getters: {
            getToken(state: {token: string}): string {
                return state.token
            }
        },
        actions: {
            setToken(t: string) {
                this.token = t
            },
        },
    }
)